﻿using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;

namespace ProjectCore.EntityFrameworkCore.Migrations
{
    public partial class Demo1 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Admins",
                columns: table => new
                {
                    AdminID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    LoginName = table.Column<string>(maxLength: 50, nullable: true),
                    Pwd = table.Column<string>(maxLength: 160, nullable: true),
                    AdminName = table.Column<string>(maxLength: 50, nullable: true),
                    RoleID = table.Column<int>(nullable: false),
                    Email = table.Column<string>(maxLength: 50, nullable: true),
                    Photo = table.Column<int>(nullable: false),
                    CreateTime = table.Column<DateTime>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    Tel = table.Column<string>(maxLength: 50, nullable: true),
                    Spare = table.Column<string>(maxLength: 50, nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Admins", x => x.AdminID);
                });

            migrationBuilder.CreateTable(
                name: "Evals",
                columns: table => new
                {
                    EvalID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    ProID = table.Column<int>(nullable: false),
                    UserID = table.Column<int>(nullable: false),
                    Grade = table.Column<int>(nullable: false),
                    Info = table.Column<string>(maxLength: 200, nullable: true),
                    Photo = table.Column<string>(maxLength: 200, nullable: true),
                    CreateTime = table.Column<DateTime>(nullable: false),
                    State = table.Column<int>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    DeleteMark = table.Column<int>(nullable: false),
                    Spare = table.Column<string>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Evals", x => x.EvalID);
                });

            migrationBuilder.CreateTable(
                name: "Logistics",
                columns: table => new
                {
                    LogisticsID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    Billing = table.Column<int>(nullable: false),
                    SendCity = table.Column<string>(maxLength: 50, nullable: true),
                    First = table.Column<int>(nullable: false),
                    Freight = table.Column<decimal>(nullable: false),
                    Next = table.Column<decimal>(nullable: false),
                    NextNum = table.Column<int>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    Spare = table.Column<string>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Logistics", x => x.LogisticsID);
                });

            migrationBuilder.CreateTable(
                name: "Menus",
                columns: table => new
                {
                    MenuID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    ParentID = table.Column<int>(nullable: false),
                    MenuName = table.Column<string>(maxLength: 20, nullable: true),
                    Link = table.Column<string>(maxLength: 100, nullable: true),
                    Icon = table.Column<string>(maxLength: 50, nullable: true),
                    Sort = table.Column<int>(nullable: false),
                    Spare = table.Column<string>(maxLength: 50, nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Menus", x => x.MenuID);
                });

            migrationBuilder.CreateTable(
                name: "Nlogs",
                columns: table => new
                {
                    LogID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    AdminID = table.Column<int>(nullable: false),
                    AdminName = table.Column<string>(nullable: true),
                    OperateTime = table.Column<DateTime>(nullable: false),
                    Describe = table.Column<string>(nullable: true),
                    Spare = table.Column<string>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Nlogs", x => x.LogID);
                });

            migrationBuilder.CreateTable(
                name: "Orders",
                columns: table => new
                {
                    OrderID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    OrderNum = table.Column<string>(maxLength: 50, nullable: true),
                    Sort = table.Column<int>(nullable: false),
                    Account = table.Column<string>(maxLength: 50, nullable: true),
                    Pay = table.Column<int>(nullable: false),
                    Send = table.Column<int>(nullable: false),
                    State = table.Column<int>(nullable: false),
                    Spare = table.Column<string>(maxLength: 50, nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Orders", x => x.OrderID);
                });

            migrationBuilder.CreateTable(
                name: "Pays",
                columns: table => new
                {
                    PayID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    Money = table.Column<decimal>(nullable: false),
                    PayType = table.Column<int>(nullable: false),
                    Serial = table.Column<string>(maxLength: 20, nullable: true),
                    Num = table.Column<int>(nullable: false),
                    State = table.Column<int>(nullable: false),
                    CreateTime = table.Column<DateTime>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    Spare = table.Column<string>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Pays", x => x.PayID);
                });

            migrationBuilder.CreateTable(
                name: "PicUrls",
                columns: table => new
                {
                    ID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    Photo = table.Column<string>(nullable: true),
                    Spare = table.Column<string>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_PicUrls", x => x.ID);
                });

            migrationBuilder.CreateTable(
                name: "Products",
                columns: table => new
                {
                    ProID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    ProName = table.Column<string>(maxLength: 20, nullable: true),
                    TypeID = table.Column<int>(nullable: false),
                    Photo = table.Column<int>(nullable: false),
                    Sales = table.Column<int>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    State = table.Column<int>(nullable: false),
                    CreateTime = table.Column<DateTime>(nullable: false),
                    Info = table.Column<string>(maxLength: 200, nullable: true),
                    DeleteMark = table.Column<int>(nullable: false),
                    Spare = table.Column<string>(maxLength: 200, nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Products", x => x.ProID);
                });

            migrationBuilder.CreateTable(
                name: "ProductTypes",
                columns: table => new
                {
                    ProTypeID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    ParentID = table.Column<int>(nullable: false),
                    ProTypeName = table.Column<string>(maxLength: 50, nullable: true),
                    CreateTime = table.Column<DateTime>(nullable: false),
                    Photo = table.Column<int>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    Spare = table.Column<string>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ProductTypes", x => x.ProTypeID);
                });

            migrationBuilder.CreateTable(
                name: "RoleAdmins",
                columns: table => new
                {
                    ID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    RoleID = table.Column<int>(nullable: false),
                    AdminID = table.Column<int>(nullable: false),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RoleAdmins", x => x.ID);
                });

            migrationBuilder.CreateTable(
                name: "RoleInfo",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    RoleName = table.Column<string>(maxLength: 50, nullable: false),
                    RoleType = table.Column<string>(maxLength: 50, nullable: true),
                    RoleDescription = table.Column<string>(maxLength: 1000, nullable: true),
                    RoleShot = table.Column<int>(nullable: false),
                    CreateUserId = table.Column<Guid>(nullable: false),
                    CreateUserName = table.Column<string>(maxLength: 50, nullable: true),
                    CreatDateTime = table.Column<DateTime>(nullable: false),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RoleInfo", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "RoleMenus",
                columns: table => new
                {
                    ID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    RoleID = table.Column<int>(nullable: false),
                    MenuID = table.Column<int>(nullable: false),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RoleMenus", x => x.ID);
                });

            migrationBuilder.CreateTable(
                name: "Roles",
                columns: table => new
                {
                    RoleID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    RoleName = table.Column<string>(maxLength: 50, nullable: true),
                    Sort = table.Column<int>(nullable: false),
                    CreateDate = table.Column<DateTime>(nullable: false),
                    ParentID = table.Column<int>(nullable: false),
                    Spare = table.Column<string>(maxLength: 200, nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Roles", x => x.RoleID);
                });

            migrationBuilder.CreateTable(
                name: "SeckillConfigns",
                columns: table => new
                {
                    ConfignID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    ConfignName = table.Column<string>(maxLength: 50, nullable: true),
                    BeginTime = table.Column<DateTime>(nullable: false),
                    EndTime = table.Column<DateTime>(nullable: false),
                    ConfignImg = table.Column<string>(nullable: true),
                    State = table.Column<int>(nullable: false),
                    CreateTime = table.Column<DateTime>(nullable: false),
                    Spare = table.Column<string>(maxLength: 50, nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SeckillConfigns", x => x.ConfignID);
                });

            migrationBuilder.CreateTable(
                name: "SeckillProducts",
                columns: table => new
                {
                    SeckillID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    ConfignID = table.Column<int>(nullable: false),
                    Photo = table.Column<int>(nullable: false),
                    SeckillTitle = table.Column<string>(nullable: true),
                    SeckillIntro = table.Column<string>(nullable: true),
                    UnitPrice = table.Column<decimal>(nullable: false),
                    Limited = table.Column<int>(nullable: false),
                    LimitedResidue = table.Column<int>(nullable: false),
                    SeckillState = table.Column<int>(nullable: false),
                    PriceSpike = table.Column<decimal>(nullable: false),
                    CreateTime = table.Column<DateTime>(nullable: false),
                    ProProperty = table.Column<int>(nullable: false),
                    Spare = table.Column<string>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SeckillProducts", x => x.SeckillID);
                });

            migrationBuilder.CreateTable(
                name: "Settings",
                columns: table => new
                {
                    SettingID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    LogisticsID = table.Column<int>(nullable: false),
                    State = table.Column<int>(nullable: false),
                    Num = table.Column<int>(nullable: false),
                    Sort = table.Column<int>(nullable: false),
                    Spare = table.Column<string>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Settings", x => x.SettingID);
                });

            migrationBuilder.CreateTable(
                name: "Sites",
                columns: table => new
                {
                    SiteID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    Place = table.Column<string>(maxLength: 100, nullable: true),
                    OrderID = table.Column<int>(nullable: false),
                    Cnee = table.Column<string>(maxLength: 20, nullable: true),
                    Tel = table.Column<string>(maxLength: 11, nullable: true),
                    Spare = table.Column<string>(maxLength: 50, nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Sites", x => x.SiteID);
                });

            migrationBuilder.CreateTable(
                name: "SkuCars",
                columns: table => new
                {
                    SkuID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    ProductTypeID = table.Column<int>(nullable: false),
                    Price = table.Column<decimal>(nullable: false),
                    Tprice = table.Column<decimal>(nullable: false),
                    Num = table.Column<int>(nullable: false),
                    Weight = table.Column<int>(nullable: false),
                    Color = table.Column<string>(maxLength: 50, nullable: true),
                    Size = table.Column<string>(maxLength: 50, nullable: true),
                    Cal = table.Column<int>(nullable: false),
                    Spare = table.Column<int>(nullable: false),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SkuCars", x => x.SkuID);
                });

            migrationBuilder.CreateTable(
                name: "SkuPhones",
                columns: table => new
                {
                    SkuID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    ProductTypeID = table.Column<int>(nullable: false),
                    Price = table.Column<decimal>(nullable: false),
                    Tprice = table.Column<decimal>(nullable: false),
                    Num = table.Column<int>(nullable: false),
                    Weight = table.Column<int>(nullable: false),
                    Color = table.Column<string>(maxLength: 50, nullable: true),
                    Size = table.Column<string>(maxLength: 50, nullable: true),
                    Memory = table.Column<string>(maxLength: 50, nullable: true),
                    Cal = table.Column<int>(nullable: false),
                    Spare = table.Column<int>(nullable: false),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SkuPhones", x => x.SkuID);
                });

            migrationBuilder.CreateTable(
                name: "UserGroupInfo",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    UserGroupName = table.Column<string>(maxLength: 50, nullable: false),
                    CreateUserId = table.Column<Guid>(nullable: false),
                    CreateUserName = table.Column<string>(maxLength: 50, nullable: true),
                    CreatDateTime = table.Column<DateTime>(nullable: false),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_UserGroupInfo", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "UserInfo",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    UserName = table.Column<string>(maxLength: 50, nullable: false),
                    UserPassword = table.Column<string>(maxLength: 50, nullable: false),
                    UserPhone = table.Column<string>(maxLength: 50, nullable: true),
                    Address_Province = table.Column<string>(maxLength: 25, nullable: true),
                    Address_City = table.Column<string>(maxLength: 25, nullable: true),
                    Address_County = table.Column<string>(maxLength: 25, nullable: true),
                    Address_AddressDetails = table.Column<string>(maxLength: 200, nullable: true),
                    Address_IsDeleted = table.Column<bool>(nullable: false),
                    CreateUserId = table.Column<Guid>(nullable: false),
                    CreateUserName = table.Column<string>(maxLength: 50, nullable: true),
                    CreatDateTime = table.Column<DateTime>(nullable: false),
                    IsDeleted = table.Column<bool>(nullable: false),
                    IsDisable = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_UserInfo", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Users",
                columns: table => new
                {
                    UserID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                    UserName = table.Column<string>(maxLength: 20, nullable: true),
                    Sex = table.Column<int>(nullable: false),
                    DeleteMark = table.Column<int>(nullable: false),
                    Photo = table.Column<int>(nullable: false),
                    Contry = table.Column<string>(maxLength: 30, nullable: true),
                    Prov = table.Column<string>(maxLength: 30, nullable: true),
                    City = table.Column<string>(maxLength: 30, nullable: true),
                    Sort = table.Column<int>(nullable: false),
                    CreateTime = table.Column<DateTime>(nullable: false),
                    Spare = table.Column<string>(maxLength: 200, nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Users", x => x.UserID);
                });

            migrationBuilder.CreateTable(
                name: "UserGroupUnRoleInfo",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    UserGroupId = table.Column<Guid>(nullable: false),
                    RoleId = table.Column<Guid>(nullable: false),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_UserGroupUnRoleInfo", x => x.Id);
                    table.ForeignKey(
                        name: "FK_UserGroupUnRoleInfo_RoleInfo_RoleId",
                        column: x => x.RoleId,
                        principalTable: "RoleInfo",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_UserGroupUnRoleInfo_UserGroupInfo_UserGroupId",
                        column: x => x.UserGroupId,
                        principalTable: "UserGroupInfo",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "UserUnGroupInfo",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    UserId = table.Column<Guid>(nullable: false),
                    UserGroupId = table.Column<Guid>(nullable: false),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_UserUnGroupInfo", x => x.Id);
                    table.ForeignKey(
                        name: "FK_UserUnGroupInfo_UserGroupInfo_UserGroupId",
                        column: x => x.UserGroupId,
                        principalTable: "UserGroupInfo",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_UserUnGroupInfo_UserInfo_UserId",
                        column: x => x.UserId,
                        principalTable: "UserInfo",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "UserUnRoleInfo",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    UserId = table.Column<Guid>(nullable: false),
                    RoleId = table.Column<Guid>(nullable: false),
                    IsDeleted = table.Column<bool>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_UserUnRoleInfo", x => x.Id);
                    table.ForeignKey(
                        name: "FK_UserUnRoleInfo_RoleInfo_RoleId",
                        column: x => x.RoleId,
                        principalTable: "RoleInfo",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_UserUnRoleInfo_UserInfo_UserId",
                        column: x => x.UserId,
                        principalTable: "UserInfo",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateIndex(
                name: "IX_UserGroupUnRoleInfo_RoleId",
                table: "UserGroupUnRoleInfo",
                column: "RoleId");

            migrationBuilder.CreateIndex(
                name: "IX_UserGroupUnRoleInfo_UserGroupId",
                table: "UserGroupUnRoleInfo",
                column: "UserGroupId");

            migrationBuilder.CreateIndex(
                name: "IX_UserUnGroupInfo_UserGroupId",
                table: "UserUnGroupInfo",
                column: "UserGroupId");

            migrationBuilder.CreateIndex(
                name: "IX_UserUnGroupInfo_UserId",
                table: "UserUnGroupInfo",
                column: "UserId");

            migrationBuilder.CreateIndex(
                name: "IX_UserUnRoleInfo_RoleId",
                table: "UserUnRoleInfo",
                column: "RoleId");

            migrationBuilder.CreateIndex(
                name: "IX_UserUnRoleInfo_UserId",
                table: "UserUnRoleInfo",
                column: "UserId");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Admins");

            migrationBuilder.DropTable(
                name: "Evals");

            migrationBuilder.DropTable(
                name: "Logistics");

            migrationBuilder.DropTable(
                name: "Menus");

            migrationBuilder.DropTable(
                name: "Nlogs");

            migrationBuilder.DropTable(
                name: "Orders");

            migrationBuilder.DropTable(
                name: "Pays");

            migrationBuilder.DropTable(
                name: "PicUrls");

            migrationBuilder.DropTable(
                name: "Products");

            migrationBuilder.DropTable(
                name: "ProductTypes");

            migrationBuilder.DropTable(
                name: "RoleAdmins");

            migrationBuilder.DropTable(
                name: "RoleMenus");

            migrationBuilder.DropTable(
                name: "Roles");

            migrationBuilder.DropTable(
                name: "SeckillConfigns");

            migrationBuilder.DropTable(
                name: "SeckillProducts");

            migrationBuilder.DropTable(
                name: "Settings");

            migrationBuilder.DropTable(
                name: "Sites");

            migrationBuilder.DropTable(
                name: "SkuCars");

            migrationBuilder.DropTable(
                name: "SkuPhones");

            migrationBuilder.DropTable(
                name: "UserGroupUnRoleInfo");

            migrationBuilder.DropTable(
                name: "Users");

            migrationBuilder.DropTable(
                name: "UserUnGroupInfo");

            migrationBuilder.DropTable(
                name: "UserUnRoleInfo");

            migrationBuilder.DropTable(
                name: "UserGroupInfo");

            migrationBuilder.DropTable(
                name: "RoleInfo");

            migrationBuilder.DropTable(
                name: "UserInfo");
        }
    }
}
